package com.jinglin.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * focus_user_id是被关注的人。	user_id是发起关注的人。
 * </p>
 *
 * @author ${author}
 * @since 2025-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserFocus对象", description="focus_user_id是被关注的人。	user_id是发起关注的人。")
public class UserFocus extends Model<UserFocus> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "用户ID")
    private String focusUserId;

    private LocalDateTime focusTime;
    @TableField(exist = false)
    private String  otherNickName;
    @TableField(exist = false)
    private String  otherAvatar;
    @TableField(exist = false)
    private String otherPersonIntroduction;
    @TableField(exist = false)
    private String otherUserId;
    // 1为互关。0为关注/被关注
    private Integer focusType;


    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

}
